﻿using System;
using System.Text;
using System.Threading;

//自定义命名空间
using DreamCube.Framework.Utilities.Remoting;

namespace BGN.Common.Remoting
{
    /// <summary>
    /// 标识系统连接的远程对象
    /// </summary>
    public class SystemConnection : BasicObject
    {
        /// <summary>
        /// 定义一个事件委托 
        /// </summary>
        public delegate void ClientConnectHandler();

        /// <summary>
        /// 客户端请求连接的事件
        /// </summary>
        public event ClientConnectHandler ClientConnect;

        public void Connect()
        {
            if (ClientConnect != null)
                ClientConnect();
        }
    }
}
